package com.jiantong.user.service;

import com.jiantong.user.model.BreedFactoryStable;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.List;
import java.util.Map;

/**
 * Created by mz on 24/7/17.
 *
 */
public interface BreedFactoryStableReadService {

    /**
     * 具体的栏舍号信息
     * @param id id
     * @return Response<BreedFactoryStable>
     */
    Response<BreedFactoryStable> findById(Long id);

    /**
     * 根据养殖场查询该养殖场的栏舍信息
     * @param pageNo 页码
     * @param pageSize 每页多少条
     * @param criteria 参数
     * @return Response<Paging<BreedFactoryStable>>
     */
    Response<Paging<BreedFactoryStable>> paging(Integer pageNo, Integer pageSize, Map<String , Object> criteria);

    /**
     * 查询养殖场的栏舍的list
     * @param breedFactoryId 养殖场的id
     * @return List<BreedFactoryStable>
     */
    Response<List<BreedFactoryStable>> findStableList(Long breedFactoryId);

    /**
     * 栏舍是否存在
     * @param breedFactoryId 养殖场的id
     * @return Long
     */
    Response<Long> isExist(Long breedFactoryId);
}
